package com.itheima.myextends.homework02;

class Fu {
    public void methodFu(){
        System.out.println("我是父类的method方法");
    }
}

class Zi extends Fu{
    public void methodZi(){
        System.out.println("我是子类的method方法");
    }

}

class Demo1 {
    public static void main(String[] args) {
        Zi z = new Zi();
        z.methodFu();
        z.methodZi();
    }
}
